package cn.zjk.test.bean;

import cn.zjk.springframework.stereotype.Component;
import lombok.Data;

import java.util.Random;

/**
 * @description:
 * @Author zjk
 * @className: TempService
 * @date: 2023/4/3 10:20
 */

@Component("tempService")
@Data
public class TempService implements ITempService{
    private String token;
    public String queryInfo(){
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "1,zjk,jiangsu";
    }
    public String register(String userName) {
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "注册用户：" + userName + " success！";
    }
}
